// 订单接口
import request from '@/utils/request'

// 添加订单
export const addOrderService = (val) => {
  return request.post('/orders/add', val)
}

// 获取用户订单
export const getUserOrderService = (userId) => {
  return request.get(`/orders/getUserOrder?userId=${userId}`)
}

